﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace Electronic_work_order.Model
{
    //权限表
    public class Permission
    {
        //PermissionID 权限编码
        [Key]
        public int PermissionID { get; set; }

        //PermissionName 权限名称
        public string PermissionName { get; set; }

        //权限状态(启用，禁用)
        public int PermissionStateID { get; set; }

        [ForeignKey("PermissionStateID")]
        public virtual PermissionState  PermissionState { get; set; }

        //Comments 权限描述
        public string Comments { get; set; }
     
    }
}
